package com.dy.system.controller;

import com.dy.system.domain.Logs;
import com.dy.system.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/logs")
public class LogController {

    @Autowired
    private LogService service;

    /**
     * 查询全部的信息
     */
    @GetMapping
    public List<Logs> findAll(){
        return service.findAll();
    }
}
